package com.jy.wms.web;



import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * 运费统计
 */
@Controller
@RequestMapping("/journaling")
public class WmsYftotals {
    @Autowired
    SysMenuService menuService;
    /**
     * 运费统计报表
     * @param model
     * @param session
     * @return
     */
    @RequestMapping(value = "/StatisticalFreight/{menu}")
    public String getYfList(@PathVariable("menu") String menu, Model model, HttpSession session)
    {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return  "wmsYfTotals/listYfTotals";
    }
    /**
     * 统计支数报表
     * @param model
     * @param session
     * @return
     */
    @RequestMapping(value = "/StatisticsCountReport/{menu}")
    public String getZsList(@PathVariable("menu") String menu,Model model, HttpSession session)
    {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return  "wmsZsTotals/listZsTotals";
    }
}
